fix(toDash): Format grouping into AdaptationSets#462
Merged
LuanRT merged 1 commit intoLuanRT:mainfrom Aug 9, 2023
Merged
Conversation
1 task
LuanRT
approved these changes
Aug 9, 2023
Wykerd
added a commit
that referenced
this pull request
Aug 9, 2023
LuanRT
added a commit
that referenced
this pull request
Aug 18, 2023
* deps: update linkedom
* refactor!: remove YTNodeGenerator in favour of namespaced pure functions
BREAKING CHANGES:
- Removes `YTNodeGenerator` from `import('youtubei.js').Generator` and exposes its functions directly in `import('youtubei.js').Generator`
* refactor!: replace Parser class with pure functions
- Remove Parser class in favour of pure functions
- Merge duplicate classes `AppendContinuationItemsAction` into a single class
- Move continuation parsers into a seperate file
- Add better custom logging support to parser methods as per issue #460
* refactor!: replace Proto class with pure functions
* chore: update package-lock.json
* refactor!: replace FormatUtils with pure functions and JSX components
- Replace linkedom DASH manifest generation with a dependency free JSX implementation
- Remove FormatUtils class in favour of pure functions
- Remove DOMParser requirement
- Remove duplicate types
* refactor: implement changes from #462
* chore: lint
* fix: deno support
* fix: render valid xml document
* fix: wrong function call in DashUtils
* fix: typo in parser
Co-authored-by: LuanRT <luan.lrt4@gmail.com>
* refactor!: move streaming info logic into seperate function
This allows users to access the same data available in the dash manifest while also simplifying the manifest generation
* chore: lint
* refactor: readability improvements & fixes
Remove redundant getAudioTrackGroups
General readability improvements in StreamingInfo.ts
Share response object between `getBitrate` and `getMimeType` as to not make duplicate requests
* build: remove unnecessary step in deno build
Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
* refactor: move types to `types` directory
* docs: add back comments lost during refactor
* chore: lint
---------
Co-authored-by: LuanRT <luan.lrt4@gmail.com>
Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request should fix the long standing issue with dash.js'
getBitrateInfoListFornot working correctly, that was reported on the discord server a while back. It also addresses the more recent issue with some videos that have multiple audio tracks, also having a broken one.FreeTubeApp/FreeTube#3843
Instead of the previous AdaptationSet groupings that were done with the entire mime type with codecs parameter string and by audio track id, this pull request uses the mime type, codec without the level and profile information, the colour information and the audio track ids. This new grouping system will make sure that all AV1 and h264 streams go into one adaption set each, instead of a different one for every different profile and level, while making sure that the VP9 streams are still correctly separated into SDR and HDR groups.
Test URLs:
Video with broken audio track: https://youtu.be/UJeSWbR6W04
4K HDR with surround sound: https://youtu.be/njX2bu-_Vw4
Multiple audio languages: https://youtu.be/1WEAJ-DFkHE